package com.jeason.blogweb;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableTransactionManagement
@EnableOpenApi
@SpringBootApplication
@ComponentScan(basePackages = {"com.jeason.blogmpg",
        "com.jeason.blogweb",
        "com.jeason.blogservice",
        "com.jeason.blogcommon"})
@MapperScan("com.jeason.blogweb.mapper")
public class BlogWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(BlogWebApplication.class, args);
    }

}
